package com.day32;

/**
 *父类
 */
public class Animal {
    private String type;//类别
    private String skin;//肤色
    private int legCount;//脚数量

    public void eat(){
        System.out.println("动物在吃东西");
    }

    public void huxi(){
        System.out.println("动物在呼吸");
    }

    //类别
    public String getType(){
        return type;
    }

    public void setType(String type){
        this.type=type;
    }

    //肤色
    public String getSkin(){
        return skin;
    }

    public void setSkin(String skin){
        this.skin=skin;
    }

    //脚数量
    public int getLegCount(){
        return legCount;
    }

    public void setLegCount(int legCount){
        this.legCount=legCount;
    }
}
